package com.github.lybgeek.hello.autoconfigure;


import com.github.lybgeek.hello.service.HelloService;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;

@AutoConfiguration
public class HelloAutoConfiguration {


    @Bean
    @ConditionalOnMissingBean
    public HelloService helloService(){
        return new HelloService();
    }
}
